package com.im.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 会话信息
 *
 * @author yunZhouJiaDi
 */
@Data
@TableName("chat")
@Accessors(chain = true)
public class Chat {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("个性签名")
    private Long id;

    @ApiModelProperty("会话id")
    private String chatId;

    @ApiModelProperty("最后接受的消息")
    private String lastMessage;

    @ApiModelProperty("最后接受消息时间")
    private Long lastReceiveTime;

    @ApiModelProperty("最后发送人名称（主要处理群聊发送人）")
    private String lastSendName;
}
